<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<script src="/Public/layer/jquery-1.9.1.js"></script>
<script src="/Public/layer/layer.min.js"></script>
<body class="">
    <style>
        li{list-style: none}
        table tr td{border:  1px solid #f1f1f1}
        body table{color: #6c6c6c;font-size: 12px;font-family: "微软雅黑";border-collapse: 0px;border-spacing: 0px;}
        table tr:hover{background: #dde7ff}
    </style>
    <table style="width: 700px;">
        <?php 
        foreach($arr as $key=>$value){
        ?>
        <tr>
            <td style="width: 160px;"><b><?php echo $hangye[$key]?></b></td>
            <td style="width: 520px">
                <?php foreach($value as $k=>$val){ ?>
                <?php if($k%2==1){?>
                <div style="width: 260px;float: left;">
                    <?php }else{?>
                    <div style="width: 260px;float: left;">
                        <?php }?>
                        <li>
                            <input type="radio" name="hangye" value="<?php echo $val['name']?>" id="<?php echo $val['id']?>"><label for="<?php echo $val['id']?>"><?php echo $val['name']?></label>
                        </li>
                    </div>
                    <?php }?>
            </td>
        </tr>
        <?php
        }
        ?>
    </table>
    <script>
        $("input[name='hangye']").click(function() {
            var d = $("input:checked").val();
            var index = parent.layer.getFrameIndex(window.name);
            parent.$("#hangye").val(d);
            parent.layer.close(index);
        });
    </script>
</body>
